import { createRouter, createWebHistory } from 'vue-router'
import SseClient from '@/components/SseClient.vue'
import SseClient2 from '@/components/SseClient2.vue'
import ChatWithDoctor from '@/components/ChatWithDoctor.vue'
import NotFound from '@/components/NotFound.vue'

const routes = [
  {
    path: '/sse',
    name: 'SseClient',
    component: SseClient
  },
  {
    path: '/sse2',
    name: 'SseClient2',
    component: SseClient2
  },
  {
    path: '/',
    name: 'Chat',
    component: ChatWithDoctor
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: NotFound
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router